

for %%i in (code\*****.py) do (
 python -m py_compile %%i

ren code\__pycache__\%%~ni*.pyc %%~ni.pyc

)


move code\__pycache__  lib



for %%i in (code\*.bat code\*.sh) do (
copy %%i lib\

)

rem rmdir /S /Q code
pause